<template>
	<view>
		<RealName v-if="type === 'RealName'" :obj='userInfo'></RealName>
		<Student v-if="type === 'Student'" :obj='userInfo'></Student>
		<BindPhone v-if="type === 'BindPhone'" :obj='userInfo'></BindPhone>
	</view>
</template>

<script>
	import Student from '@/compontents/Student.vue'
	import RealName from '@/compontents/RealName.vue'
	import BindPhone from '@/compontents/BindPhone.vue'
	export default {
		components: {
			Student,
			RealName,
			BindPhone
		},
		data() {
			return {
				type: '', // 认证类型
				userInfo: JSON.parse(uni.getStorageSync("userInfo"))
			}
		},
		onLoad(options) {
			console.log('options', options.name);


			this.type = options.name
		},
		methods: {

		}
	}
</script>

<style>

</style>